import request from "../utils/request";

export const postVideoList = (data)=>{
    return request({
        url:'video/list',
        method:'POST',
        data:data
    })
}

// 添加
export const postAddVideo = (data)=>{
    return request({
        url:'video/add',
        method:'POST',
        data:data
    })
}

// 删除
export const postDeleteVideo = (videoId)=>{
    return request({
        url:'video/delete',
        method:'POST',
        data:{
            videoId
        }
    })
}

// 修改
export const postUpdateVideo = (data)=>{
    return request({
        url:'video/update',
        method:'POST',
        data:data
    })
}
